Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632703 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/155 - Space Game

preview3.gif cody/swapnilsparsh/30DaysOfJavaScript/155 - Space Game/preview3.gif
64 Views
0 Comments
Media file
style.css cody/swapnilsparsh/30DaysOfJavaScript/155 - Space Game/style.css
105 Views
0 Comments
canvas {
padding: 0;
margin-left: auto;
margin-right: auto;
display: block;
border: solid 7px rgb(255, 69, 106);
}
index.html cody/swapnilsparsh/30DaysOfJavaScript/155 - Space Game/index.html
304 Views
0 Comments
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Space Game</title>
<link rel="stylesheet" href="./style.css">

</head>
readme.md cody/swapnilsparsh/30DaysOfJavaScript/155 - Space Game/readme.md
176 Views
0 Comments
## Space Game

- Use Arrow Key To Move.
- Catch the Octopus

script.js cody/swapnilsparsh/30DaysOfJavaScript/155 - Space Game/script.js
170 Views
0 Comments
const canvas = document.getElementById("canvas")
const ctx = canvas.getContext("2d");

// Background of Space
const space = {
image: new Image(),
};